package lab5;

/**
 *
 * @author grp02 - Pascal Charreix and Meike Paetz
 *
 * This is the flight reservation class
 */
public class FlightReservation {

    private String From;
    private String To;
    private int Date;
    private int SeatNumber;
    private int HollidayPackageId;
    private int Status;
    private String Company;

    /*
     * Status = 0 -> Created
     * Status = 1 -> Confirmed
     *
     *
     * returns flight company
     */
    public String getCompany() {
        return Company;
    }

    /*
     * 
     * returns flight date
     */
    public int getDate() {
        return Date;
    }

    /*
     * 
     * returns flight state
     */
    public int getStatus() {
        return Status;
    }

    /*
     * 
     * returns flight destination
     */
    public String getFrom() {
        return From;
    }

    /*
     * 
     * returns holiday package id
     */
    public int getHollidayPackageId() {
        return HollidayPackageId;
    }

    /*
     * 
     * returns seat number
     */
    public int getSeatNumber() {
        return SeatNumber;
    }

    /*
     * 
     * returns arrival
     */
    public String getTo() {
        return To;
    }

    /*
     * 
     * sets state
     */
    public void setStatus(int status) {
        this.Status = status;
    }

    /*
     * 
     * sets flight reservation
     */
    public FlightReservation(String From, String To, int Date, int SeatNumber, int HollidayPackageId, int Status, String Company) {
        this.From = From;
        this.To = To;
        this.Date = Date;
        this.SeatNumber = SeatNumber;
        this.HollidayPackageId = HollidayPackageId;
        this.Status = Status;
        this.Company = Company;
    }
}
